﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        public static void Main(string[] args)
        {
            DoSome();
        }

        static void DoSome()
        {
            Task.Factory.StartNew(() =>
            {
                for (int i = 0; i < 20; i++)
		        {
                    System.Threading.Thread.Sleep(1000);
                    Console.WriteLine(i);
		        }
            });
        }
    }
}
